﻿<!--
// (c) Copyright Microsoft Corporation.
// This source is subject to the Microsoft Public License (Ms-PL).
// Please see http://go.microsoft.com/fwlink/?LinkID=131993 for details.
// All other rights reserved.
-->

<UserControl x:Class="Microsoft.Windows.Controls.Testing.SubtreeDifferentMode"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
    xmlns:theming="clr-namespace:Microsoft.Windows.Controls.Theming;assembly=Microsoft.Windows.Controls.Theming"
    Width="400" Height="300">
    <Grid Background="White" theming:ImplicitStyleManager.ApplyMode="Auto">
        <Grid.Resources>
            <Style TargetType="Button">
                <Setter Property="Background" Value="Red" />
            </Style>
        </Grid.Resources>
        <StackPanel>
            <Button Content="First Button" x:Name="firstButton"/>
            <Button theming:ImplicitStyleManager.ApplyMode="OneTime" x:Name="secondButton">
                
            </Button>
        </StackPanel>
    </Grid>
</UserControl>
